<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%@taglib prefix="spring"  uri="http://www.springframework.org/tags" %>

<div class="clear"></div>

<div style="margin: 15px;border: 1px;">
<!-- Binding message -->
				<spring:hasBindErrors name='<%=request.getParameter("command")%>'>
                   <spring:bind path='<%=request.getParameter("command") + ".*"%>'>
				<c:forEach var="error" items="${status.errorMessages}">
					<p class="info" id="error"><span class="info_inner">${error}</span></p>
				</c:forEach>
                   </spring:bind>
                </spring:hasBindErrors>
                  
<!-- Response message -->
                  <c:if test="${not empty message}">
                  	<c:if test="${message.type == 'info'}">
                  		<p class="info" id="info"><span class="info_inner">${message.text}</span></p>
                  	</c:if>
                  	
                  	<c:if test="${message.type == 'success'}">
                  		<p class="info" id="success"><span class="info_inner">${message.text}</span></p>
                  	</c:if>
                  	
                  	<c:if test="${message.type == 'warning'}">
                  		<p class="info" id="warning"><span class="info_inner">${message.text}</span></p>
                  	</c:if>
                  	
                  	<c:if test="${message.type == 'error'}">
						<p class="info" id="error"><span class="info_inner">${message.text}</span></p>
                  	</c:if>
                  </c:if>
</div>